package appapi.Vo;

import appapi.entity.Zhongjiao.MaintenandetailDto;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @author djq
 * @date 2023/6/1 10:32
 * @description:
 */
@Data
public class MaintenanPageVo {
    /**
     * 维保ID
     */
    @ApiModelProperty(value = "维保ID")
    private Long mainId;

    /**
     * 设备id
     */
    @ApiModelProperty(value = "设备id")
    private Long equipId;

    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号")
    private String equipNo;

    /**
     * 设备类型
     */
    @ApiModelProperty(value = "设备类型")
    @Excel(name = "设备类型",orderNum = "1",width = 20)
    private String equipTypeName;

    /**
     * 设备别名
     */
    @ApiModelProperty(value = "设备别名")
    @Excel(name = "设备别名",orderNum = "2",width = 20)
    private String equipName;

    /**
     * 设备型号
     */
    @ApiModelProperty(value = "设备型号")
    @Excel(name = "规格型号",orderNum = "3",width = 20)
    private String equipModel;

    /**
     * 是否正常
     */
    @ApiModelProperty(value = "是否正常")
    @Excel(name = "是否正常",orderNum = "4",width = 20,replace = {"正常_0","不正常_1"})
    private Integer mainResult;


    /**
     * 所在项目
     */
    @ApiModelProperty(value = "所在项目")
    private String projName;

    /**
     * 所在公司
     */
    @ApiModelProperty(value = "所在公司")
    @Excel(name = "所属机构",orderNum = "5",width = 20)
    private String orgaName;

    /**
     * 维保人员id
     */
    @ApiModelProperty(value = "维保人员id")
    private Integer operId;

    /**
     * 维保人员名称
     */
    @ApiModelProperty(value = "维保人员名称")
    @Excel(name = "维保人员",orderNum = "6",width = 20)
    private String operName;

    /**
     * 维保时间
     */
    @ApiModelProperty(value = "维保时间")
    @Excel(name = "维保时间",orderNum = "7",width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime mainDate;

    /**
     * 整改要求
     */
    @ApiModelProperty(value = "整改要求")
    @Excel(name = "整改要求",orderNum = "8",width = 20)
    private String expRequire;

}
